#include "DataStructure/Result/ElementalForce/TRIA6ForceData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const TRIA6ForceData& val1, const TRIA6ForceData& val2)
{
    FIELD_COMPARE (m_eId)
    FIELD_COMPARE_ARR (m_TERM, 4)
    FIELD_COMPARE_ARR (m_GRID, 4)
    FIELD_COMPARE_ARR (m_MX, 4)
    FIELD_COMPARE_ARR (m_MY, 4)
    FIELD_COMPARE_ARR (m_MXY, 4)
    FIELD_COMPARE_ARR (m_BMX, 4)
    FIELD_COMPARE_ARR (m_BMY, 4)
    FIELD_COMPARE_ARR (m_BMXY, 4)
    FIELD_COMPARE_ARR (m_TX, 4)
    FIELD_COMPARE_ARR (m_TY, 4)
    FIELD_COMPARE (m_domainId)  // NOLINT(readability-simplify-boolean-expr)
    return true;
}

bool SG::DataStructure::Post::operator< (const TRIA6ForceData& a, const TRIA6ForceData& b)
{
    return a.m_eId < b.m_eId;
}
